package com.demo.bean;

import org.aspectj.lang.JoinPoint;
import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
import org.springframework.core.annotation.Order;
import org.springframework.stereotype.Component;
@Component
@Aspect
@Order(1)
public class AuthorityAspect {
	@Before(value = "execution(* com.demo.bean.*.*(..))")
	public void authorize(JoinPoint point){
		System.out.println("对"+point.getSignature().getName()+"授权");
	}
}
